<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" href="/Public/Admin/css/personal.css"/>
    <!--<link href="/Public/Admin/css/new_plan.css" rel="stylesheet" />-->
    <script src="/Public/static/layer/layer.js"></script>
    <!--文件上传-->
    <script type="text/javascript" src="/Public/Cropper/js/ajaxfileupload.js" ></script>
    <style>
        .textarea{height:50px;width:90%}
        .checkCont p{float:left;}
        .checkCont a{margin-left:10px;display: inline-block;}
        .fujian{margin:0;}
        .c-red{color:red}
        .pointer{cursor: pointer}
    </style>
</block>
<block name="content"> 
    <section class="layui-larry-box">
        <div class="larry-personal">
            <div class="layui-tab">
                <blockquote class="layui-elem-quote news_search">
                    <div class="layui-inline">
                        <a class="layui-btn layui-btn-normal newsAdd_btn" href="{:U('address')}">返回</a>
                    </div>
                </blockquote>
                <!-- 表单项 -->
                <form class="layui-form" action="">
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">姓名</label>
                        <div class="layui-input-block">
                            <input class="layui-input" readonly="" style='border:0'  value='{$data.info.user_name}'>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">性别</label>
                        <div class="layui-input-block">
                            <select name="sex" class="layui-input search_input sex">
                                <option value="0" {$data['info']['sex'] == 0 ? 'selected' : ''}>男</option>
                                <option value="1" {$data['info']['sex'] == 1 ? 'selected' : ''}>女</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">固定电话</label>
                        <div class="layui-input-block">
                            <input name="tel" placeholder="" class="layui-input mobil_no" value='{$data.tel}'>
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">分机号码</label>
                        <div class="layui-input-block">
                            <input name="sort_tel" placeholder="" class="layui-input mobil_no" value='{$data.sort_tel}'>
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">通讯地址</label>
                        <div class="layui-input-block">
                            <input name="address" placeholder="" class="layui-input email" value='{$data.address}'>
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">QQ号</label>
                        <div class="layui-input-block">
                            <input name="qq" placeholder="" class="layui-input email" value='{$data.qq}'>
                        </div>
                    </div>
<!--                    <div class="layui-form-item">
                        <label class="layui-form-label">分组</label>
                        <div class="layui-input-block">
                            <select name="GROUP_ID" class="layui-input search_input group_id" style="width:60%;display:inline;">
                                <option value=''>请选择分组</option>
                                <foreach name="groups" item="group">
                                    <option value="{$group.group_id}" {$info['group_id'] == $group['group_id'] ? 'selected' : ''}>{$group.group_name}</option>
                                </foreach>
                            </select>
                            <span class="group pointer"><span class="icon_add">&#xe638;</span>&nbsp;新建分组</span>
                        </div>
                    </div>-->
                    <div class="layui-form-item">
                        <label class="layui-form-label">排序</label>
                        <div class="layui-input-block">
                            <input name="address_no" placeholder="" class="layui-input" value='{$data.address_no}'>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户状态</label>
                        <div class="layui-input-block">
                            <input type="radio" name="is_delete" value="0" style="width:15px" checked="" {$data['is_delete']==0 ? 'checked' : ''}>正常
                            <input type="radio" name="is_delete" value="1" style="width:15px;margin-left:10px" {$data['is_delete']==1 ? 'checked' : ''}>禁用
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <a class="layui-btn btn-submit ajax-post" data-url="{:U('saveAddress')}" data-form="">提交</a>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                    <input type='hidden' name='id' value='{$data.id}'>
                    <input type='hidden' name='user_id' value='{$data.info.user_id}'>
                </form>
            </div>
        </div>
    </section>
</block>
<block name="script">
    <!--<script type="text/javascript" src="/Public/Admin/js/erp.js"></script>-->
    <script type="text/javascript" src="/Public/Admin/js/common.js" ></script>
 
    
</block>
